package com.token.controller;

import com.token.service.QrCodeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @author: henriy
 * @Date: 2024/8/8
 */
@RestController
@RequestMapping("/qrcode")
public class QrCodeController {

    @Resource
    private QrCodeService qrCodeService;

    @PostMapping("/codeDownloadLogo")
    public void codeDownloadLogo(HttpServletResponse response) {
        qrCodeService.codeDownloadLogo(response);
    }

    @PostMapping("/codeDownloadBackground")
    public void codeDownloadBackground(HttpServletResponse response) {
        qrCodeService.codeDownloadBackground(response);
    }

}
